﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="LAB3_Cv.Login" %>

<asp:Content ID="Content3" ContentPlaceHolderID="MainPlaceholder" runat="server">
    <div>
    
        <asp:Label ID="LabelSocialSecurity" runat="server" Text="Personnummer:"></asp:Label>
        <asp:TextBox ID="TextBoxSocialSecurity" runat="server" OnTextChanged="TextBoxSocialSecurity_TextChanged"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorSocialSecurity" runat="server" ControlToValidate = "TextBoxSocialSecurity" ErrorMessage="Du måste fylla i Användarnamn!">*</asp:RequiredFieldValidator>
        <br />
        <asp:Label ID="LabelPassword" runat="server" Text="Lösenord:"></asp:Label>
    
        <asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password"></asp:TextBox>
    
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassword" runat="server" ControlToValidate ="TextBoxPassword" ErrorMessage="Du måste fylla i Lösenord!">*</asp:RequiredFieldValidator>
    
        <br />
        <asp:Label ID="LabelSocialSecurityPassword" runat="server" Text="Ditt Personnummer eller Lösenord är felaktigt!"></asp:Label>
    
        <br />
        <asp:HyperLink ID="HyperLinkRegister" runat="server" NavigateUrl="~/RegisterUser.aspx">Skapa Ny Användare</asp:HyperLink>
        <br />
        <asp:Button ID="ButtonLogin" runat="server" Text="Logga In" OnClick="LoginButton_Click" />
    
        <asp:ValidationSummary ID="ValidationSummary" runat="server" />
    
    </div>
    </asp:Content>